<%@ page language="java" contentType="text/html; charset=UTF-8"  isELIgnored="false"  pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<script src="${pageContext.request.contextPath}/js/jQuery/jquery-3.4.1.min.js"></script>
<script src="${pageContext.request.contextPath}/dist/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="${pageContext.request.contextPath}/dist/bootstrap-3.3.7-dist/css/bootstrap.min.css">
<link rel="stylesheet" href="${pageContext.request.contextPath}/layui/css/layui.css">
<style>
	table{
		width: 600px;

	}
	tr{
		height: 40px;

	}
	td {
		width: 80px;
		border-bottom:1px dashed lightgrey;
	}

	.submitBtn{
		display: block;
		border: none;
		background-color: dodgerblue;
		color: white;
		width: 250px;
		height: 30px;
		line-height: 30px;
		text-decoration: none;
		text-align: center;
		margin-top: 10px;

	}
</style>
<html>

    <head>
        
    </head>
    
    <body>
        
    <form >
    	<input type="hidden" class="orderId" name="orderId" value="${order.orderId }" />
        <table>
        	<tr>
        		<td>
        			订单编号: ${order.orderNumber }
        		</td>
        	</tr>
			<tr>
        		<td>
        			收件人名称: ${address.addressCust }
        		</td>
			</tr>
			<tr>
				<td>
					收获地址: ${address.addressProvince }
				</td>
			</tr>
        	<tr>

        		<td>
        			订单价格: ${order.orderTotalprice }
        		</td>

        	</tr>
			<tr>
        		<td>
        			订单创建时间：${order.orderCreatetime }
        		</td>
        	</tr>
        	<tr>
        		<td>
        			<input class="submitBtn" type="button" value="前往支付宝进行支付">
        			
        			<%--<input class="submitBtn" type="button" value="微信扫码支付" onclick="wxpayDisplay()">--%>
        		</td>
        	</tr>
        </table>
    </form>
    
    	
        <input type="hidden" id="hdnContextPath" name="hdnContextPath" value="<%=request.getContextPath() %>"/>
    </body>
    
</html>


<script type="text/javascript">

	$(".submitBtn").click(function () {
		var orderId = $(".orderId").val();
		window.location.href =   "/fresh/alipay/goAlipay/" + orderId;
	})

// 	$(document).ready(function() {
		
// 		var hdnContextPath = $("#hdnContextPath").val();
		
// 	});
	

</script>

